package com.literature.search.core.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @ClassName DownloadRecord
 * @Description 用户下载记录
 * @Author abin
 * @Date 2023/2/22 23:43
 * @Version 1.0
 */
@Data
@Document(collection = "download_record")
public class DownloadRecord {
    @Id
    @ApiModelProperty(value = "下载记录ID")
    private String id;

    @Field("file_id")
    @ApiModelProperty(value = "下载文件ID")
    private String fileId;

    @Field("file_name")
    @ApiModelProperty(value = "下载文件名")
    private String fileName;

    @Field("user_id")
    @ApiModelProperty(value = "下载用户ID")
    private String userId;

    @Field("user_name")
    @ApiModelProperty(value = "下载用户名")
    private String userName;

    @Field("download_date")
    @ApiModelProperty(value = "下载时间")
    private String downloadDate;

    @Field("uploader")
    @ApiModelProperty(value = "文件上传者")
    private String uploader;
}
